<?php $this->pageTitle=Yii::app()->name; ?>

<h1>Welcome to <i><?php echo CHtml::encode(Yii::app()->name); ?></i></h1>

<?php 
//Yii::app()->menuManager->mainMenu();


//$messageIDs=Yii::app()->sms->sendMessage('0430389879','Hello Patrick again');
//var_dump($messageIDs);
//foreach($messageIDs as $mid){
//	$messageStatus = Yii::app()->sms->GetMessageStatus( $mid );
//	var_dump($messageStatus);
//}
//	$messageStatus = Yii::app()->sms->GetMessageStatus( '140cbd16-1ab2-4950-916f-99c0ee05eabe' );
//var_dump(Yii::app()->authManager);
//echo Yii::app()->authManager->checkAccess('admin',Yii::app()->user->getId());
//echo Yii::app()->mailer->sendOutgoingMail('registerMail','platinas.hy@hotmail.com','Activation information',array('username'=>'Test','activation_url'=>'http://'));

//$result=Yii::app()->google->getGeoCode('27 Francis St Clayton VIC 3168 Australia');
//var_dump($result);

//$this->widget('ext.egoogle.EGoogleMap',array('container'=>'mapC',
//'address'=>'27 Francis St Clayton VIC Australia',
//'containerOptions'=>array('style'=>'height:500px'),
//'labelHtml'=>'<h3>Coffee Shop</h3>',
//'markerIcon'=>Yii::app()->baseUrl.'/images/hotshot.png',
//));

//Yii::app()->google->map('mapv','27 Francis St Clayton VIC Australia',array('style'=>'height:500px'),'<h3>Coffee Shop</h3>');
//echo date('Y-m-d H:i:s A',DataUtil::getStartOfWeek(time()));


//$t=CoffeeShop::model()->statToday();
//foreach($t as $tt){
//	echo $tt->id.$tt->name;
//	var_dump($tt);
//}

$t=CafeVote::model()->voteToday()->fromSMS()->getVote();
foreach($t as $tt){
	echo '<p>'.$tt->coffeeShop->id.$tt->coffeeShop->name.$tt->voteCount.'</p>';
	//var_dump($tt);
}
?>

<div  class="form">
<select><option>aaa</option>><option>nnn</option> </select>
<textarea rows="5" cols="30"></textarea>
<input type="text" />
<input type="radio" name="asdasd" value="1" />
<input type="checkbox" />
<input type="password" />
<input type="button" />
<input type="submit" class="search" value="Search" size="10"/>
</div>